import { Config } from './config.interface';
import * as process from 'process';
const config: Config = {
  nest: {
    port: process.env.NODE_ENV == 'dev' ? 3801 : 3800,
  },
  cors: {
    enable: true,
  },
  swagger: {
    enable: true,
    title: 'PeopleX人财管理系统API',
    version: '1.0',
    path: 'swagger',
    description: 'api文档',
  },
  security: {
    bcryptSaltOrRound: 10,
    expiresIn: '1d',
    refreshIn: '1d',
  },
  file: {
    images: './public/images',
  },
};

export default (): Config => config;
